<%@ page language="java" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    <title>Registered User List</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
    <center><h1>Registered User List</h1>
    <p>
    <h3>Regular MVC Type</h3>
    </center>
    <p>
    
    <table>
    	<tr>
    		<th>Id</th>
    		<th>Description</th>
    		<th>First Name</th>
    		<th>Surname</th>
    		<th>Location ID</th>
    		<th>DOB</th>
    	</tr>
    	<c:forEach var="user" items="${userList}">
    	<tr>
    		<td><c:out value="${user.id}"/></td>
    		<td><c:out value="${user.description}"/></td>
    		<td><c:out value="${user.firstName}"/></td>
    		<td><c:out value="${user.surname}"/></td>
    		<td><c:out value="${user.location.id}"/></td>
    		<td><c:out value="${user.dob}"/></td>
    	</tr>
		</c:forEach>
    </table>

  </body>
</html>
